package com.cocotingo.snail.text;

import java.awt.Color;
import java.awt.Font;

public class RichTextBlock {
	
	private Color color;
	private Font font;
	private boolean hotspot;
	private String text;
	
	public RichTextBlock(RichTextBlock block) {
		this.text = block.text;
		this.color = block.color;
		this.font = block.font;
		this.hotspot = block.hotspot;
	}
	
	public RichTextBlock(String text) {
		this.text = text;
		color = null;
		font = null;
		hotspot = false;
	}
	
	public Color getColor() {
		return color;
	}
	
	public void setColor(Color color) {
		this.color = color;
	}
	
	public Font getFont() {
		return font;
	}
	
	public void setFont(Font font) {
		this.font = font;
	}
	
	public boolean isHotspot() {
		return hotspot;
	}
	
	public void setHotspot(boolean hotspot) {
		this.hotspot = hotspot;
	}
	
	public String getText() {
		return text;
	}
	
	public void setText(String text) {
		this.text = text;
	}
	
	@Override
	public String toString() {
		return text;
	}
	
}
